home *** CD-ROM | disk | FTP | other *** search
/ Wildcat Files 2 / The Wildcat Files 2 (Arsenal Computer).ISO / netmail / genbbs.bat < prev    next >
DOS Batch File  |  1994-04-02  |  6KB  |  107 lines

  1. :                     Island Information Systems
  2. :Setup for Passing BAud and Time to events from D'bridge Frontend Mailer.
  3. :This Batch Must be in The Current path for this Machine.                     
  4. :This batch file is Started from another BAtch file generated by D'Bridge
  5. :called BBS.bat and also must be created in the Current machine path
  6. :The commands for D'bridges dos commands for BBS are as follows
  7. :
  8. :
  9. :echo Set baud=*C    >C:\PATH\ BBS.BAT
  10. :ECHO SET TIME=*T   >>C:\PATH\ BBS.BAT  :More lines can be added to this
  11. :ECHO GENBBS        >>C:\PATH\ BBS.BAT  :file to allow assigning Comports 
  12.                                         :if the mailer is run on more than 
  13.                                         :one node. Each line must have two 
  14.                                         : >> symbols before the BBS.bat 
  15. C:\
  16. :
  17. :Catgen 300/19200
  18. CD\Wildcat\Node1
  19.  WILDCAT /B %Baud%  %Time%
  20. IF ERRORLEVEL 60 LAST.BAT
  21. IF ERRORLEVEL 50 DOOR.BAT
  22. IF ERRORLEVEL 40 DROPDOS.BAT
  23. IF ERRORLEVEL 35 MESSAGE.BAT
  24. IF ERRORLEVEL 6 KILL.BAT
  25. IF ERRORLEVEL 4 TOP.BAT
  26. IF ERRORLEVEL 2 STAT.BAT
  27. LAST
  28. :END
  29. type Rom.txt                       :Rom.Txt Go's in the Wildcat Node# Dir
  30.                                    :it is a menu you design with batch file
  31.                                    :commands Listed so others can use 
  32.                                    :the machine for functions there allowed
  33.                                    :this isn't needed only a conveinece.
  34.  
  35.  
  36.  
  37. :
  38. :Rem Your front end Mailer must Send MNP codes NOT ARQ
  39. :This can be set from D'bridges Connect Strings
  40. :The connect Strings to be passed to Wildcat are
  41. :
  42. :
  43. :9600 CONNECT  9600|9600
  44. :2400 CONNECT  2400|2400
  45. :1200 CONNECT  1200|1200
  46. :300  CONNECT   300|300
  47. :9600 CONNECT 9600/ARQ|19200/MNP
  48. :2400 CONNECT 2400/ARQ|2400/MNP
  49. :1200 CONNECT 1200/ARQ|1200/MNP
  50. :300  CONNECT  300/ARQ|300/MNP
  51. :
  52. :
  53. :THERE AREN'T ANY 300/MNP Modems I know of but if you have one Just add it
  54. :the same way as the other ARQ-MNP conversions
  55. :The above strings must be entered as showen here into the Dbridge window for
  56. :connect strings and Dbridge will handle the conversion.
  57. :NOTE Im useing an HST type modem on this machine so for the 9600 MNP connect
  58. :I'm takeing for granted that ONLY HST modems will connect to me and since my
  59. :PORT is LOCKED at 19200 im telling Wildcat that it's 19200,There is and area
  60. :here for a problem if your Useing a V32 or a Dual standard. The Problem is
  61. :if a Straight V32 modem connects to Wildcat in MNP mode the user will be
  62. :allowed to use the G-protocols.. this can cause problems with lost carrier
  63. :at worst and loss of data at best some of the newer V42 products should be
  64. :compatible with MNP and hence the G-protocols "SHOULD" work if your not 
  65. :SURE just make the code for 9600/ARQ|9600/MNP this way if your locked and 
  66. :the remote system is locked the modems will do there thing reguardless of
  67. :what the connect code is telling Wildcat and if there MNP thay get the
  68. :G-Protocols.The V32 Standard states 9600 BAUD period dosn't go into MNP
  69. :or any locking of the comports... This is what the newer V42 modems are
  70. :Upgraded V32 modems so as to allow LOCKING of comports and MNP data
  71. :compression! This is where the new Number V42 comes from
  72. :these new modems are not built to the International Standard with
  73. :Highest comport speed of 9600 and employ MNP as well as Trellis codeing
  74. :thay can't be called True V32's and rightly so Locked comports can supply
  75. :faster data transfers on most connections. This is getting further into
  76. :internal workings of a modem than I wish to really so I'll
  77. :end with this IF you don't have MNP or don't worry about Connect codes.
  78. :The only extra Wildcat allows with an MNP connect is the G-Protocols.
  79. :
  80. :
  81. :The purpose of this batch file is to allow use of all existing errorlevels
  82. :as well as any batch files or events that are currently running on your 
  83. :system. When letting Dbridge spawn the bbs you lose control of it and 
  84. :Dbridge will always come up after a BBS session. This method allows
  85. :the mailer to exit with *X as your doing now and run down your existing
  86. :mailer batch file to start the BBS, the only change to the Existing
  87. :mailer batch file would be to add the line BBS.BAT for each errorlevel
  88. :exit used to pass to the BBS.It should be the First line in that Module 
  89. :of the Mailer bat file. you can also exit with *X96 for all users and freeup
  90. :the other 3 Errorlevels for use in another area of the system. 
  91. :Please NOTE ALL batch files should be in the PATH and the same Errorlevel
  92. :CAN NOT be used for ANY OTHER EVENTS....!
  93. :(Mailer.bat,BBS.bat,genbbs.bat)
  94. :BBS.bat is created by Dbridge each time a
  95. :caller passes to the BBS and must be in the path. Dbridge will exit,
  96. :run down the batch file to the correct speed for the user, it will
  97. :convert the ARQ codes from Dbridge to MNP codes for Wildcat than it
  98. :starts the module in the mailer batch file to Run your BBS at that speed.
  99. :The first line is BBS.BAT so it jumps across the path and Runs BBS.bat
  100. :which sets the Enviroment variables of speed and time till next event in
  101. :and runs This batch file GENBBS.BAT. Remember to edit this file to 
  102. :reflect your Wildcat Errorlevels, you may also remove ALL these REM lines
  103. :You must also add another line to the end of the of this batch file 
  104. :or if exiting with Errorlevel 60 after each call Whatever batch files calls
  105. :the mailer back to REMOVE BBS.BAT after each BBS session or else the mailer
  106. :mailer.bat sees BBS.BAT and try's to start the BBS again.
  107. : the line is  IF EXIST c:\dos\BBS.BST DEL BBS.BAT